class AddCodeFields < ActiveRecord::Migration
  def self.up
    add_column :questions, :code, :string, :limit => 10
    add_column :strategies, :code, :string, :limit => 10
    add_column :strategies, :short_name, :string, :limit => 60
    add_column :roles, :code, :string, :limit => 10
  end

  def self.down
    remove_column :questions, :code
    remove_column :roles, :code
    remove_column :strategies, :code
    remove_column :strategies, :short_name    
  end
end
